package com.lbjhan.rpc.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * rpc响应对象
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class RpcResponse implements Serializable {

    /***
     * 响应ID
     */
    private String responseId;

    /**
     * 错误信息
     */
    private String error;

    /**
     * 响应信息
     */
    private Object result;

}
